Help > Reference > Macros > Tab object > FetchFlagged method

FetchFlagged method

Calling this method will return a Documents collection object of all documents that were flagged with a given color in the current search results.

This is one of the preferred methods of enumerating the result set.

Member of

Tab

Type

Function(Flag)

Parameters

Return

The example below enumerates all the documents in the search results that were flagged with Blue and outputs their filenames to a file called "c:\output.txt".

Example

Set FSO = CreateObject("Scripting.FileSystemObject")
Set Output = FSO.CreateTextFile("c:\output.txt", True)
For Each Document in App.ActiveTab.FetchFlagged(1)
  Output.WriteLine Document.AbsoluteFilename
Next

See Also

Macro Object Model

Tab